<%-- 
    Document   : home
    Created on : 2-sep-2011, 11:18:54
    Author     : fgo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
<%@include file="includes/header.jsp" %>

<spring:form action="${action}" method="POST" commandName="shopItem">
    <input type="hidden" id="shoppingList.name" name="shoppingList.name" value="${shoppingList.name}" />
    <table>
        <tr>
            <td>Item:</td>
            <td>
                <spring:select path="item.name" items="${items}" itemLabel="name" itemValue="name" />
            </td>
        </tr>
        <tr>
            <td>Amount:</td>
            <td><spring:input path="amount" /></td>
        </tr>
        <tr>
            <td colspan="2" ><input type="submit" value="${btnAction}" /></td>
            </tr>
    </table>
</spring:form>

<%@include file="includes/footer.jsp" %>
